from selenium import webdriver
import time

from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('http://novel.hctestedu.com/')
# 界面最大化
driver.maximize_window()

driver.find_element(By.CSS_SELECTOR, '#searchKey').send_keys('云上')
driver.find_element(By.CSS_SELECTOR, 'div.search>input+label').click()
time.sleep(3)
# 若查找的出现多个，则默认点击第一个
driver.find_element(By.PARTIAL_LINK_TEXT, '云上').click()

time.sleep(3)

driver.quit()
